<style>
    .smart-widget-body tr td:nth-child(2n){
        padding: 5px 20px 5px 0;
    }
</style>
<table style="width: 100%;height: 100%">
    {% if NavUl is defined %}
    <tr style="height: 67px">
        <td valign="top">{{ NavUl }}</td>
    </tr>
    {% endif %}
    <tr style="height:100%;" >
        <!--列表内容-->
        <td class="xh-datagrid">{{ List }}</td>
    </tr>
    <tr>
        <td valign="top">
            {% if AddEdit is defined %}
            <form action="{{ url('Ask/addQuestionOption') }}" id="xh_form" class="xh-form" method="post" target="submitForm" style="display: none;">
                <div class="row">
                    <div class="col-md-6">
                        <div class="smart-widget">
                            <div class="smart-widget-header">
                                问题设置
                            </div>
                            <div class="smart-widget-inner">
                                <div class="smart-widget-body" style="padding-left: 20px;">
                                    {{ Form }}
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="smart-widget">
                            <div class="smart-widget-header">
                                选项设置
                            </div>
                            <div class="smart-widget-inner">
                                <div class="smart-widget-body" style="padding-left: 20px;">
                                    <div class="form-inline question-option" style="margin-bottom: 20px">
                                        选项：
                                        <input type="text" class="form-control" name="option_content[]" style="width: 400px;min-width: 200px;">
                                    </div>
                                    <a id="bt_addOption" class="btn btn-success">增加选项</a>
                                    <a id="bt_form_add" class="btn btn-danger disable">确认提交</a>
                                    <a id="bt_form_back" class="btn btn-default disable">返回</a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
            <iframe name="submitForm" frameborder="0" class="xh-hidden"></iframe>
            {% endif %}
        </td>
    </tr>
</table>
